package com.twu.biblioteca.Commands;

import com.twu.biblioteca.Library;
import com.twu.biblioteca.LogInSystem;

import java.util.Scanner;

public class CheckMembershipCommand implements Command {
    @Override
    public String execute(Library lib, Scanner scanner, LogInSystem logInSystem) {
        return (logInSystem.isUserLoggedIn()) ?
                logInSystem.getUserInfo() : "Please talk to a Librarian. Thank you.";
    }
}